import request from "@/config/utils/request";
// 列表
export function listPageAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/listPageAcceptanceCert",
    method: "post",
    data
  });
}
export function listAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/listPageAcceptanceCert",
    method: "post",
    data
  });
}

// 列表删除

export function removeAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/removeAcceptanceCert",
    method: "post",
    data
  });
}

// 新增合同弹框内选择列表
export function listSmpPcConcPage(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpPcConcForCheck",
    method: "post",
    data
  });
}

// 新增合同的保存按钮
export function saveAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/saveAcceptanceCert",
    method: "post",
    data
  });
}

// 编辑合同
export function editAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/editAcceptanceCert",
    method: "post",
    data
  });
}

// 合同物料目录

export function getSmpPcConcMatListById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcMatListById",
    method: "post",
    data
  });
}

// 合同查詢詳情

export function getSmpPcConcById(data) {
  return request({
    url: "/apis/smp/smppcconc/getSmpPcConcById ",
    method: "post",
    data
  });
}

// 查看列表

export function getAcceptanceCert(data) {
  return request({
    url: "/apis/smp/acceptancecert/getAcceptanceCert",
    method: "post",
    data
  });
}

// 新增订单弹框内选择列表
export function getOrder(data) {
  return request({
    url: "/apis/smp/ocorder/getOrder",
    method: "post",
    data
  });
}

export function listPageOrder(data) {
  return request({
    url: "/apis/smp/ocorder/listOrder",
    method: "post",
    data
  });
}

// 新增发货单弹框内选择列表
export function listInAcceptShipOrder(data) {
  return request({
    url: "/apis/smp/ocshiporder/listInAcceptShipOrder",
    method: "post",
    data
  });
}

// 发货单回显基本信息

export function getOcShipOrderById(data) {
  return request({
    url: "/apis/smp/ocshiporder/getOcShipOrderById",
    method: "post",
    data
  });
}
// 发货单单物资清单获取
export function listShipList(data) {
  return request({
    url: "/apis/smp/ocshiporder/listShipList",
    method: "post",
    data
  });
}

// 发货单开启、关闭
export function updateOcShipStatus(data) {
  return request({
    url: "/apis/smp/ocshiporder/updateOcShipStatus",
    method: "post",
    data
  });
}

// 查询用户信息
export function getUserInfo(url, data) {
  return request({
    url,
    method: "POST",
    data
  });
}

// 查询填报单位
export function getOgenName(data) {
  return request({
    url: "/apis/smp/basic/listUserPartJobComInfo",
    method: "POST",
    data
  });
}

// 地区
export function qryAreaAddress(data) {
  return request({
    url: "/apis/smp/basic/qryAreaAddress",
    method: "POST",
    data
  });
}

// 品牌厂家接口
export function getManufacturerBrand(data) {
  return request({
    url: "/apis/smp/smppcconc/listSmpBrandRelation",
    method: "POST",
    data
  });
}
